<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.15"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>tvs_sdk_api: tvs_common_def.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
  $(document).ready(initResizable);
/* @license-end */</script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">tvs_sdk_api
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.8.15 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'搜索');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('tvs__common__def_8h_source.html','');});
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="headertitle">
<div class="title">tvs_common_def.h</div>  </div>
</div><!--header-->
<div class="contents">
<a href="tvs__common__def_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a name="l00001"></a><span class="lineno">    1</span>&#160;</div><div class="line"><a name="l00008"></a><span class="lineno">    8</span>&#160;<span class="preprocessor">#ifndef __TVS_COMMON_DEF_H__</span></div><div class="line"><a name="l00009"></a><span class="lineno">    9</span>&#160;<span class="preprocessor">#define __TVS_COMMON_DEF_H__</span></div><div class="line"><a name="l00010"></a><span class="lineno">   10</span>&#160;</div><div class="line"><a name="l00011"></a><span class="lineno">   11</span>&#160;<span class="comment">//---------------------------------------------------------------------------</span></div><div class="line"><a name="l00012"></a><span class="lineno">   12</span>&#160;<span class="comment">// 错误码</span></div><div class="line"><a name="l00013"></a><span class="lineno">   13</span>&#160;<span class="comment">//---------------------------------------------------------------------------</span></div><div class="line"><a name="l00017"></a><span class="lineno"><a class="line" href="tvs__common__def_8h.html#abd111340885a45f4c2ce9176fa0c3c4e">   17</a></span>&#160;<span class="comment"></span><span class="preprocessor">#define TVS_API_ERROR_NONE                                   0</span></div><div class="line"><a name="l00018"></a><span class="lineno">   18</span>&#160;</div><div class="line"><a name="l00021"></a><span class="lineno"><a class="line" href="tvs__common__def_8h.html#aa6e3f4bb6f128d1c5759ac5162459ca3">   21</a></span>&#160;<span class="preprocessor">#define TVS_API_ERROR_OTHERS                                -1</span></div><div class="line"><a name="l00022"></a><span class="lineno">   22</span>&#160;</div><div class="line"><a name="l00025"></a><span class="lineno"><a class="line" href="tvs__common__def_8h.html#ac9c01518cb708fa275f3d5246d6cbb05">   25</a></span>&#160;<span class="preprocessor">#define TVS_API_ERROR_BUSY                                  -2</span></div><div class="line"><a name="l00026"></a><span class="lineno">   26</span>&#160;</div><div class="line"><a name="l00029"></a><span class="lineno"><a class="line" href="tvs__common__def_8h.html#a6d0a256cc0c018bdadad3ea84016665f">   29</a></span>&#160;<span class="preprocessor">#define TVS_API_ERROR_MEDIAPLAYER_INVALID                   -3</span></div><div class="line"><a name="l00030"></a><span class="lineno">   30</span>&#160;</div><div class="line"><a name="l00033"></a><span class="lineno"><a class="line" href="tvs__common__def_8h.html#aabd2305934340a03ddc884188f071622">   33</a></span>&#160;<span class="preprocessor">#define TVS_API_ERROR_NOT_ATHORIZED                         -4</span></div><div class="line"><a name="l00034"></a><span class="lineno">   34</span>&#160;</div><div class="line"><a name="l00037"></a><span class="lineno"><a class="line" href="tvs__common__def_8h.html#a2c7fa18fdc6246f8686249c3ee60b4d8">   37</a></span>&#160;<span class="preprocessor">#define TVS_API_ERROR_NETWORK_INVALID                       -5</span></div><div class="line"><a name="l00038"></a><span class="lineno">   38</span>&#160;</div><div class="line"><a name="l00041"></a><span class="lineno"><a class="line" href="tvs__common__def_8h.html#a85c4f6964e83b218af1e99dca151de62">   41</a></span>&#160;<span class="preprocessor">#define TVS_API_ERROR_CLIENT_ID_INVALID                     -6</span></div><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;</div><div class="line"><a name="l00046"></a><span class="lineno"><a class="line" href="tvs__common__def_8h.html#ae2d761ea3098083ee9afcda62aae95da">   46</a></span>&#160;<span class="preprocessor">#define TVS_API_ERROR_NOT_RUNNING                           -7</span></div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;</div><div class="line"><a name="l00051"></a><span class="lineno"><a class="line" href="tvs__common__def_8h.html#a2832d3f802f68fc5ee9e6a0b812c9252">   51</a></span>&#160;<span class="preprocessor">#define TVS_API_ERROR_NETWORK_ERROR                         -8</span></div><div class="line"><a name="l00052"></a><span class="lineno">   52</span>&#160;</div><div class="line"><a name="l00056"></a><span class="lineno"><a class="line" href="tvs__common__def_8h.html#abf52274e8585cb4edb9f0cd637103873">   56</a></span>&#160;<span class="preprocessor">#define TVS_API_ERROR_NO_MORE_MEDIA                         -10</span></div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;<span class="preprocessor">#define TVS_API_ERROR_INVALID_PARAMS                        -11</span></div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;</div><div class="line"><a name="l00064"></a><span class="lineno"><a class="line" href="tvs__common__def_8h.html#a4910c576d2ee166721a6414854273ff9">   64</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> {</div><div class="line"><a name="l00065"></a><span class="lineno"><a class="line" href="tvs__common__def_8h.html#a4910c576d2ee166721a6414854273ff9af3b16c1d04aa3c3eb77f2b90d31fccfb">   65</a></span>&#160;    <a class="code" href="tvs__common__def_8h.html#a4910c576d2ee166721a6414854273ff9af3b16c1d04aa3c3eb77f2b90d31fccfb">TVS_STATE_IDLE</a>,           </div><div class="line"><a name="l00066"></a><span class="lineno"><a class="line" href="tvs__common__def_8h.html#a4910c576d2ee166721a6414854273ff9a343a7d50d3b175edfed40587907623b6">   66</a></span>&#160;    <a class="code" href="tvs__common__def_8h.html#a4910c576d2ee166721a6414854273ff9a343a7d50d3b175edfed40587907623b6">TVS_STATE_PREPARING</a>,      </div><div class="line"><a name="l00067"></a><span class="lineno"><a class="line" href="tvs__common__def_8h.html#a4910c576d2ee166721a6414854273ff9acf772907befd6d32c52c45cabfb3b498">   67</a></span>&#160;    <a class="code" href="tvs__common__def_8h.html#a4910c576d2ee166721a6414854273ff9acf772907befd6d32c52c45cabfb3b498">TVS_STATE_RECOGNIZNG</a>,     </div><div class="line"><a name="l00068"></a><span class="lineno"><a class="line" href="tvs__common__def_8h.html#a4910c576d2ee166721a6414854273ff9a99197d5435bc834184d4a77bd4483651">   68</a></span>&#160;    <a class="code" href="tvs__common__def_8h.html#a4910c576d2ee166721a6414854273ff9a99197d5435bc834184d4a77bd4483651">TVS_STATE_BUSY</a>,           </div><div class="line"><a name="l00069"></a><span class="lineno"><a class="line" href="tvs__common__def_8h.html#a4910c576d2ee166721a6414854273ff9a6323cb6c5c34b551393924b425fba383">   69</a></span>&#160;    <a class="code" href="tvs__common__def_8h.html#a4910c576d2ee166721a6414854273ff9a6323cb6c5c34b551393924b425fba383">TVS_STATE_SPEECH_PLAYING</a>, </div><div class="line"><a name="l00070"></a><span class="lineno">   70</span>&#160;} <a class="code" href="tvs__common__def_8h.html#a4910c576d2ee166721a6414854273ff9">tvs_recognize_state</a>;</div><div class="line"><a name="l00071"></a><span class="lineno">   71</span>&#160;</div><div class="line"><a name="l00072"></a><span class="lineno">   72</span>&#160;<span class="preprocessor">#define TVS_STATE_COMPLETE   TVS_STATE_IDLE</span></div><div class="line"><a name="l00073"></a><span class="lineno">   73</span>&#160;</div><div class="line"><a name="l00077"></a><span class="lineno"><a class="line" href="tvs__common__def_8h.html#a7b5f77df252a057ac0a63f6f07f44833">   77</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> {</div><div class="line"><a name="l00078"></a><span class="lineno"><a class="line" href="tvs__common__def_8h.html#a7b5f77df252a057ac0a63f6f07f44833a512585d6d04ffe8a6daa80f6ed70ed9d">   78</a></span>&#160;    <a class="code" href="tvs__common__def_8h.html#a7b5f77df252a057ac0a63f6f07f44833a512585d6d04ffe8a6daa80f6ed70ed9d">TVS_API_ENV_TEST</a>,       </div><div class="line"><a name="l00079"></a><span class="lineno"><a class="line" href="tvs__common__def_8h.html#a7b5f77df252a057ac0a63f6f07f44833a2e8aae81e668558ffe21b45be01cd17a">   79</a></span>&#160;    <a class="code" href="tvs__common__def_8h.html#a7b5f77df252a057ac0a63f6f07f44833a2e8aae81e668558ffe21b45be01cd17a">TVS_API_ENV_NORMAL</a>,     </div><div class="line"><a name="l00080"></a><span class="lineno"><a class="line" href="tvs__common__def_8h.html#a7b5f77df252a057ac0a63f6f07f44833aad7c9ec87757c7a1d9a9803954db80cd">   80</a></span>&#160;    <a class="code" href="tvs__common__def_8h.html#a7b5f77df252a057ac0a63f6f07f44833aad7c9ec87757c7a1d9a9803954db80cd">TVS_API_ENV_EXP</a>,        </div><div class="line"><a name="l00081"></a><span class="lineno"><a class="line" href="tvs__common__def_8h.html#a7b5f77df252a057ac0a63f6f07f44833aec0292e6108b685e689939a7ccf51346">   81</a></span>&#160;    <a class="code" href="tvs__common__def_8h.html#a7b5f77df252a057ac0a63f6f07f44833aec0292e6108b685e689939a7ccf51346">TVS_API_ENV_DEV</a>,        </div><div class="line"><a name="l00082"></a><span class="lineno">   82</span>&#160;} <a class="code" href="tvs__common__def_8h.html#a7b5f77df252a057ac0a63f6f07f44833">tvs_api_env</a>;</div><div class="line"><a name="l00083"></a><span class="lineno">   83</span>&#160;</div><div class="line"><a name="l00087"></a><span class="lineno"><a class="line" href="tvs__common__def_8h.html#af3d61c6c0a0109373487de2a670ace99">   87</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> {</div><div class="line"><a name="l00088"></a><span class="lineno"><a class="line" href="tvs__common__def_8h.html#af3d61c6c0a0109373487de2a670ace99a810069da3b1e6fdc78ee6d1b6eefd67b">   88</a></span>&#160;    <a class="code" href="tvs__common__def_8h.html#af3d61c6c0a0109373487de2a670ace99a810069da3b1e6fdc78ee6d1b6eefd67b">TVS_MODE_NORMAL</a>, </div><div class="line"><a name="l00089"></a><span class="lineno"><a class="line" href="tvs__common__def_8h.html#af3d61c6c0a0109373487de2a670ace99a132794155b9bdc0dd93fc086131bda62">   89</a></span>&#160;    <a class="code" href="tvs__common__def_8h.html#af3d61c6c0a0109373487de2a670ace99a132794155b9bdc0dd93fc086131bda62">TVS_MODE_BAOLA</a>,  </div><div class="line"><a name="l00090"></a><span class="lineno"><a class="line" href="tvs__common__def_8h.html#af3d61c6c0a0109373487de2a670ace99aaa3536b84bda0a291b254102ba4d1030">   90</a></span>&#160;    <a class="code" href="tvs__common__def_8h.html#af3d61c6c0a0109373487de2a670ace99aaa3536b84bda0a291b254102ba4d1030">TVS_MODE_CHILD</a>,  </div><div class="line"><a name="l00091"></a><span class="lineno">   91</span>&#160;    TVS_MODE_COUNT,</div><div class="line"><a name="l00092"></a><span class="lineno">   92</span>&#160;} <a class="code" href="tvs__common__def_8h.html#af3d61c6c0a0109373487de2a670ace99">tvs_mode</a>;</div><div class="line"><a name="l00093"></a><span class="lineno">   93</span>&#160;</div><div class="line"><a name="l00097"></a><span class="lineno"><a class="line" href="structtvs__default__config.html">   97</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span>{</div><div class="line"><a name="l00098"></a><span class="lineno"><a class="line" href="structtvs__default__config.html#a7cd7368b4699dc4ec4aaa64d150b3886">   98</a></span>&#160;    <a class="code" href="tvs__common__def_8h.html#a7b5f77df252a057ac0a63f6f07f44833">tvs_api_env</a> <a class="code" href="structtvs__default__config.html#a7cd7368b4699dc4ec4aaa64d150b3886">def_env</a>;  </div><div class="line"><a name="l00099"></a><span class="lineno"><a class="line" href="structtvs__default__config.html#a9598580aab7de515fa61fa44189a46d1">   99</a></span>&#160;    <span class="keywordtype">bool</span> <a class="code" href="structtvs__default__config.html#a9598580aab7de515fa61fa44189a46d1">def_sandbox_open</a>;   </div><div class="line"><a name="l00100"></a><span class="lineno"><a class="line" href="structtvs__default__config.html#acb263b01132e5f9878c7d5c906555653">  100</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="structtvs__default__config.html#acb263b01132e5f9878c7d5c906555653">recorder_bitrate</a>;   </div><div class="line"><a name="l00101"></a><span class="lineno"><a class="line" href="structtvs__default__config.html#ab797e124da93aa4b100746d7ffc42adf">  101</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="structtvs__default__config.html#ab797e124da93aa4b100746d7ffc42adf">recorder_channels</a>;  </div><div class="line"><a name="l00102"></a><span class="lineno">  102</span>&#160;    <span class="keywordtype">int</span> reserve[10];</div><div class="line"><a name="l00103"></a><span class="lineno">  103</span>&#160;} <a class="code" href="structtvs__default__config.html">tvs_default_config</a>;</div><div class="line"><a name="l00104"></a><span class="lineno">  104</span>&#160;</div><div class="line"><a name="l00108"></a><span class="lineno"><a class="line" href="structtvs__product__qua.html">  108</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span>{</div><div class="line"><a name="l00109"></a><span class="lineno"><a class="line" href="structtvs__product__qua.html#a56abfaab87c46691c1ef3ad0df23e864">  109</a></span>&#160;    <span class="keywordtype">char</span>* <a class="code" href="structtvs__product__qua.html#a56abfaab87c46691c1ef3ad0df23e864">version</a>;              </div><div class="line"><a name="l00112"></a><span class="lineno"><a class="line" href="structtvs__product__qua.html#a08f16a026de44b77c5e7be490fb9e32b">  112</a></span>&#160;    <span class="keywordtype">char</span>* <a class="code" href="structtvs__product__qua.html#a08f16a026de44b77c5e7be490fb9e32b">package_name</a>;         </div><div class="line"><a name="l00113"></a><span class="lineno"><a class="line" href="structtvs__product__qua.html#a223b9ca3dc0054a8d3aa93cfa07c9913">  113</a></span>&#160;    <span class="keywordtype">char</span>* <a class="code" href="structtvs__product__qua.html#a223b9ca3dc0054a8d3aa93cfa07c9913">reserve</a>;              </div><div class="line"><a name="l00114"></a><span class="lineno">  114</span>&#160;} <a class="code" href="structtvs__product__qua.html">tvs_product_qua</a>;</div><div class="line"><a name="l00115"></a><span class="lineno">  115</span>&#160;</div><div class="line"><a name="l00119"></a><span class="lineno"><a class="line" href="tvs__common__def_8h.html#a9ca517e8dcc62bd68fe3d719e9e99702">  119</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> {</div><div class="line"><a name="l00120"></a><span class="lineno"><a class="line" href="tvs__common__def_8h.html#a9ca517e8dcc62bd68fe3d719e9e99702a70274446cca64af3ebaedca95968b693">  120</a></span>&#160;    <a class="code" href="tvs__common__def_8h.html#a9ca517e8dcc62bd68fe3d719e9e99702a70274446cca64af3ebaedca95968b693">TVS_API_AUDIO_PROVIDER_ERROR_NONE</a> = 0,   </div><div class="line"><a name="l00121"></a><span class="lineno"><a class="line" href="tvs__common__def_8h.html#a9ca517e8dcc62bd68fe3d719e9e99702a34ff4e3d16e39e106cdf513afcc7465a">  121</a></span>&#160;    <a class="code" href="tvs__common__def_8h.html#a9ca517e8dcc62bd68fe3d719e9e99702a34ff4e3d16e39e106cdf513afcc7465a">TVS_API_AUDIO_PROVIDER_ERROR_OTHERS</a> = -1,     </div><div class="line"><a name="l00122"></a><span class="lineno"><a class="line" href="tvs__common__def_8h.html#a9ca517e8dcc62bd68fe3d719e9e99702acb1de9430ab2362c130db97812dd2354">  122</a></span>&#160;    <a class="code" href="tvs__common__def_8h.html#a9ca517e8dcc62bd68fe3d719e9e99702acb1de9430ab2362c130db97812dd2354">TVS_API_AUDIO_PROVIDER_ERROR_STOP_CAPTURE</a> = -2,    </div><div class="line"><a name="l00123"></a><span class="lineno"><a class="line" href="tvs__common__def_8h.html#a9ca517e8dcc62bd68fe3d719e9e99702ab589f35286a4700be5c23c03e4874e6b">  123</a></span>&#160;    <a class="code" href="tvs__common__def_8h.html#a9ca517e8dcc62bd68fe3d719e9e99702ab589f35286a4700be5c23c03e4874e6b">TVS_API_AUDIO_PROVIDER_ERROR_TIME_OUT</a> = -3,     </div><div class="line"><a name="l00124"></a><span class="lineno">  124</span>&#160;} <a class="code" href="tvs__common__def_8h.html#a9ca517e8dcc62bd68fe3d719e9e99702">tvs_api_audio_provider_error</a>;</div><div class="line"><a name="l00125"></a><span class="lineno">  125</span>&#160;</div><div class="line"><a name="l00129"></a><span class="lineno"><a class="line" href="tvs__common__def_8h.html#a2b822eabf850ecd41660c581c71720ed">  129</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> {</div><div class="line"><a name="l00130"></a><span class="lineno"><a class="line" href="tvs__common__def_8h.html#a2b822eabf850ecd41660c581c71720eda7dcf8ec0913517d3ca11d758d9993228">  130</a></span>&#160;    <a class="code" href="tvs__common__def_8h.html#a2b822eabf850ecd41660c581c71720eda7dcf8ec0913517d3ca11d758d9993228">TVS_RECOGNIZER_PRESS_AND_HOLD</a>,     </div><div class="line"><a name="l00131"></a><span class="lineno"><a class="line" href="tvs__common__def_8h.html#a2b822eabf850ecd41660c581c71720eda14ef8132726bd340982cb79dabbedc30">  131</a></span>&#160;    <a class="code" href="tvs__common__def_8h.html#a2b822eabf850ecd41660c581c71720eda14ef8132726bd340982cb79dabbedc30">TVS_RECOGNIZER_TAP</a>,                </div><div class="line"><a name="l00132"></a><span class="lineno"><a class="line" href="tvs__common__def_8h.html#a2b822eabf850ecd41660c581c71720edab336d318fea0dced80c6bc27a97e2fa2">  132</a></span>&#160;    <a class="code" href="tvs__common__def_8h.html#a2b822eabf850ecd41660c581c71720edab336d318fea0dced80c6bc27a97e2fa2">TVS_RECOGNIZER_WAKEWORD</a>,           </div><div class="line"><a name="l00133"></a><span class="lineno">  133</span>&#160;    TVS_RECOGNIZER_TYPE_MAX,</div><div class="line"><a name="l00134"></a><span class="lineno">  134</span>&#160;} <a class="code" href="tvs__common__def_8h.html#a2b822eabf850ecd41660c581c71720ed">tvs_api_recognizer_type</a>;</div><div class="line"><a name="l00135"></a><span class="lineno">  135</span>&#160;</div><div class="line"><a name="l00139"></a><span class="lineno"><a class="line" href="tvs__common__def_8h.html#af8c670fb593bd8e340ac8ea1ea84f689">  139</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">enum</span> {</div><div class="line"><a name="l00140"></a><span class="lineno"><a class="line" href="tvs__common__def_8h.html#af8c670fb593bd8e340ac8ea1ea84f689a6302a9b64e24905adf5d7fd6ec0d331a">  140</a></span>&#160;    <a class="code" href="tvs__common__def_8h.html#af8c670fb593bd8e340ac8ea1ea84f689a6302a9b64e24905adf5d7fd6ec0d331a">TVS_CONTROL_SPEECH</a> = 100,       </div><div class="line"><a name="l00141"></a><span class="lineno"><a class="line" href="tvs__common__def_8h.html#af8c670fb593bd8e340ac8ea1ea84f689a58948d37c7d3cef0c394fed46a946d3e">  141</a></span>&#160;    <a class="code" href="tvs__common__def_8h.html#af8c670fb593bd8e340ac8ea1ea84f689a58948d37c7d3cef0c394fed46a946d3e">TVS_CONTROL_PLAY_NEXT</a>,          </div><div class="line"><a name="l00142"></a><span class="lineno"><a class="line" href="tvs__common__def_8h.html#af8c670fb593bd8e340ac8ea1ea84f689a1a28e1151a1a207f7052cfb810af6fdc">  142</a></span>&#160;    <a class="code" href="tvs__common__def_8h.html#af8c670fb593bd8e340ac8ea1ea84f689a1a28e1151a1a207f7052cfb810af6fdc">TVS_CONTROL_PLAY_PREV</a>,          </div><div class="line"><a name="l00143"></a><span class="lineno"><a class="line" href="tvs__common__def_8h.html#af8c670fb593bd8e340ac8ea1ea84f689a0ff8f068a4bfb53c3f74ec0794c4373a">  143</a></span>&#160;    <a class="code" href="tvs__common__def_8h.html#af8c670fb593bd8e340ac8ea1ea84f689a0ff8f068a4bfb53c3f74ec0794c4373a">TVS_CONTROL_PLAY_FINISH</a>,        </div><div class="line"><a name="l00144"></a><span class="lineno"><a class="line" href="tvs__common__def_8h.html#af8c670fb593bd8e340ac8ea1ea84f689a63feb8e1ab863d0179d0e5e64c967e4f">  144</a></span>&#160;    <a class="code" href="tvs__common__def_8h.html#af8c670fb593bd8e340ac8ea1ea84f689a63feb8e1ab863d0179d0e5e64c967e4f">TVS_CONTROL_SEMANTIC</a>,           </div><div class="line"><a name="l00145"></a><span class="lineno">  145</span>&#160;} <a class="code" href="tvs__common__def_8h.html#af8c670fb593bd8e340ac8ea1ea84f689">tvs_api_control_type</a>;</div><div class="line"><a name="l00146"></a><span class="lineno">  146</span>&#160;</div><div class="line"><a name="l00150"></a><span class="lineno"><a class="line" href="structtvs__api__state__param.html">  150</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span>{</div><div class="line"><a name="l00151"></a><span class="lineno"><a class="line" href="structtvs__api__state__param.html#a43a91b7381c69af350b1f6de40346d0a">  151</a></span>&#160;    <a class="code" href="tvs__common__def_8h.html#af8c670fb593bd8e340ac8ea1ea84f689">tvs_api_control_type</a> <a class="code" href="structtvs__api__state__param.html#a43a91b7381c69af350b1f6de40346d0a">control_type</a>;  </div><div class="line"><a name="l00152"></a><span class="lineno"><a class="line" href="structtvs__api__state__param.html#a11614f44ef4d939bdd984953346a7572">  152</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="structtvs__api__state__param.html#a11614f44ef4d939bdd984953346a7572">error</a>;                          </div><div class="line"><a name="l00153"></a><span class="lineno"><a class="line" href="structtvs__api__state__param.html#ad2bbe6800cf53eb54574e79470753b7e">  153</a></span>&#160;    <span class="keywordtype">int</span> reserve[5];                     </div><div class="line"><a name="l00154"></a><span class="lineno">  154</span>&#160;} <a class="code" href="structtvs__api__state__param.html">tvs_api_state_param</a>; </div><div class="line"><a name="l00155"></a><span class="lineno">  155</span>&#160;</div><div class="line"><a name="l00156"></a><span class="lineno">  156</span>&#160;</div><div class="line"><a name="l00157"></a><span class="lineno">  157</span>&#160;<span class="preprocessor">#define TVS_TIMBRE_ZHOULONGFEI    &quot;ZHOULONGFEI&quot;</span></div><div class="line"><a name="l00158"></a><span class="lineno">  158</span>&#160;<span class="preprocessor">#define TVS_TIMBRE_CHENANQI       &quot;CHENANQI&quot;</span></div><div class="line"><a name="l00159"></a><span class="lineno">  159</span>&#160;<span class="preprocessor">#define TVS_TIMBRE_YEZI           &quot;YEZI&quot;</span></div><div class="line"><a name="l00160"></a><span class="lineno">  160</span>&#160;<span class="preprocessor">#define TVS_TIMBRE_YEWAN          &quot;YEWAN&quot;</span></div><div class="line"><a name="l00161"></a><span class="lineno">  161</span>&#160;<span class="preprocessor">#define TVS_TIMBRE_DAJI           &quot;DAJI&quot;</span></div><div class="line"><a name="l00162"></a><span class="lineno">  162</span>&#160;<span class="preprocessor">#define TVS_TIMBRE_LIBAI          &quot;LIBAI&quot;</span></div><div class="line"><a name="l00163"></a><span class="lineno">  163</span>&#160;<span class="preprocessor">#define TVS_TIMBRE_NAZHA          &quot;NAZHA&quot;</span></div><div class="line"><a name="l00164"></a><span class="lineno">  164</span>&#160;<span class="preprocessor">#define TVS_TIMBRE_MUZHA          &quot;MUZHA&quot;</span></div><div class="line"><a name="l00165"></a><span class="lineno">  165</span>&#160;<span class="preprocessor">#define TVS_TIMBRE_WY             &quot;WY&quot;</span></div><div class="line"><a name="l00166"></a><span class="lineno">  166</span>&#160;</div><div class="line"><a name="l00170"></a><span class="lineno"><a class="line" href="structtvs__api__tts__param.html">  170</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span>{</div><div class="line"><a name="l00171"></a><span class="lineno"><a class="line" href="structtvs__api__tts__param.html#a6cb4df6b2664c7590f118432adccc86f">  171</a></span>&#160;    <span class="keywordtype">char</span>* <a class="code" href="structtvs__api__tts__param.html#a6cb4df6b2664c7590f118432adccc86f">tts_text</a>;      </div><div class="line"><a name="l00172"></a><span class="lineno"><a class="line" href="structtvs__api__tts__param.html#adbb56e663dd4e999eff37af964f03d25">  172</a></span>&#160;    <span class="keywordtype">char</span>* <a class="code" href="structtvs__api__tts__param.html#adbb56e663dd4e999eff37af964f03d25">timbre</a>;        </div><div class="line"><a name="l00173"></a><span class="lineno"><a class="line" href="structtvs__api__tts__param.html#aed48ca0bcd2162fd4fd495873e2631f5">  173</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="structtvs__api__tts__param.html#aed48ca0bcd2162fd4fd495873e2631f5">volume</a>;          </div><div class="line"><a name="l00174"></a><span class="lineno"><a class="line" href="structtvs__api__tts__param.html#a218b4f7c6cc2681a99c23a3b089d68b1">  174</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="structtvs__api__tts__param.html#a218b4f7c6cc2681a99c23a3b089d68b1">speed</a>;           </div><div class="line"><a name="l00175"></a><span class="lineno"><a class="line" href="structtvs__api__tts__param.html#a05c8b22d2905f7a52fa31b13f85c70f3">  175</a></span>&#160;    <span class="keywordtype">int</span> <a class="code" href="structtvs__api__tts__param.html#a05c8b22d2905f7a52fa31b13f85c70f3">pitch</a>;           </div><div class="line"><a name="l00176"></a><span class="lineno">  176</span>&#160;} <a class="code" href="structtvs__api__tts__param.html">tvs_api_tts_param</a>;</div><div class="line"><a name="l00177"></a><span class="lineno">  177</span>&#160;</div><div class="line"><a name="l00188"></a><span class="lineno"><a class="line" href="tvs__common__def_8h.html#adbdb3f6ab77f93418109c0cd40073cd5">  188</a></span>&#160;<span class="keyword">typedef</span> void (*<a class="code" href="tvs__common__def_8h.html#adbdb3f6ab77f93418109c0cd40073cd5">tvs_callback_on_state_changed</a>)(<a class="code" href="tvs__common__def_8h.html#a4910c576d2ee166721a6414854273ff9">tvs_recognize_state</a> last_state, <a class="code" href="tvs__common__def_8h.html#a4910c576d2ee166721a6414854273ff9">tvs_recognize_state</a> new_state, <span class="keywordtype">void</span>* state_param);</div><div class="line"><a name="l00189"></a><span class="lineno">  189</span>&#160;</div><div class="line"><a name="l00198"></a><span class="lineno"><a class="line" href="tvs__common__def_8h.html#a7f76bd76ef4fe3420195796922dbe9cc">  198</a></span>&#160;<span class="keyword">typedef</span> void (*<a class="code" href="tvs__common__def_8h.html#a7f76bd76ef4fe3420195796922dbe9cc">tvs_callback_on_terminal_sync</a>)(<span class="keyword">const</span> <span class="keywordtype">char</span>* text, <span class="keyword">const</span> <span class="keywordtype">char</span>* token);</div><div class="line"><a name="l00199"></a><span class="lineno">  199</span>&#160;</div><div class="line"><a name="l00208"></a><span class="lineno"><a class="line" href="tvs__common__def_8h.html#a2f2eb737ecd41665f0691be8a7ad6a37">  208</a></span>&#160;<span class="keyword">typedef</span> void (*<a class="code" href="tvs__common__def_8h.html#a2f2eb737ecd41665f0691be8a7ad6a37">tvs_callback_on_mode_changed</a>)(<a class="code" href="tvs__common__def_8h.html#af3d61c6c0a0109373487de2a670ace99">tvs_mode</a> src, <a class="code" href="tvs__common__def_8h.html#af3d61c6c0a0109373487de2a670ace99">tvs_mode</a> dst);</div><div class="line"><a name="l00209"></a><span class="lineno">  209</span>&#160;</div><div class="line"><a name="l00217"></a><span class="lineno"><a class="line" href="tvs__common__def_8h.html#aa26b7dd51f7a270e24726cbe9c6100ee">  217</a></span>&#160;<span class="keyword">typedef</span> void (*<a class="code" href="tvs__common__def_8h.html#aa26b7dd51f7a270e24726cbe9c6100ee">tvs_callback_on_expect_speech</a>)();</div><div class="line"><a name="l00218"></a><span class="lineno">  218</span>&#160;</div><div class="line"><a name="l00225"></a><span class="lineno"><a class="line" href="tvs__common__def_8h.html#a1743b7eb722cd88695d5893b19cae1cb">  225</a></span>&#160;<span class="keyword">typedef</span> void (*<a class="code" href="tvs__common__def_8h.html#a1743b7eb722cd88695d5893b19cae1cb">tvs_callback_on_recv_tvs_control</a>)(<span class="keyword">const</span> <span class="keywordtype">char</span>* json_payload);</div><div class="line"><a name="l00226"></a><span class="lineno">  226</span>&#160;</div><div class="line"><a name="l00234"></a><span class="lineno"><a class="line" href="tvs__common__def_8h.html#ad99bb624547e16fe676bba6903cad66a">  234</a></span>&#160;<span class="keyword">typedef</span> void (*<a class="code" href="tvs__common__def_8h.html#ad99bb624547e16fe676bba6903cad66a">tvs_callback_on_asr_result</a>)(<span class="keyword">const</span> <span class="keywordtype">char</span>* asr_text, <span class="keywordtype">bool</span> is_end);</div><div class="line"><a name="l00235"></a><span class="lineno">  235</span>&#160;</div><div class="line"><a name="l00236"></a><span class="lineno">  236</span>&#160;</div><div class="line"><a name="l00240"></a><span class="lineno"><a class="line" href="structtvs__api__callback.html">  240</a></span>&#160;<span class="keyword">typedef</span> <span class="keyword">struct </span>{</div><div class="line"><a name="l00241"></a><span class="lineno"><a class="line" href="structtvs__api__callback.html#a8247d38a02f40501e4e38eeb65931b45">  241</a></span>&#160;    <a class="code" href="tvs__common__def_8h.html#adbdb3f6ab77f93418109c0cd40073cd5">tvs_callback_on_state_changed</a> <a class="code" href="structtvs__api__callback.html#a8247d38a02f40501e4e38eeb65931b45">on_state_changed</a>;      </div><div class="line"><a name="l00242"></a><span class="lineno"><a class="line" href="structtvs__api__callback.html#ab378b24bd8c1c2fe19fe879333a3fbd5">  242</a></span>&#160;    <a class="code" href="tvs__common__def_8h.html#a7f76bd76ef4fe3420195796922dbe9cc">tvs_callback_on_terminal_sync</a> <a class="code" href="structtvs__api__callback.html#ab378b24bd8c1c2fe19fe879333a3fbd5">on_terminal_sync</a>;      </div><div class="line"><a name="l00243"></a><span class="lineno"><a class="line" href="structtvs__api__callback.html#a340f3c8069694c4429da5fc84163f5d6">  243</a></span>&#160;    <a class="code" href="tvs__common__def_8h.html#a2f2eb737ecd41665f0691be8a7ad6a37">tvs_callback_on_mode_changed</a> <a class="code" href="structtvs__api__callback.html#a340f3c8069694c4429da5fc84163f5d6">on_mode_changed</a>;        </div><div class="line"><a name="l00244"></a><span class="lineno"><a class="line" href="structtvs__api__callback.html#aba31cd54f0fce9668f0735111f5f10cb">  244</a></span>&#160;    <a class="code" href="tvs__common__def_8h.html#aa26b7dd51f7a270e24726cbe9c6100ee">tvs_callback_on_expect_speech</a> <a class="code" href="structtvs__api__callback.html#aba31cd54f0fce9668f0735111f5f10cb">on_expect_speech</a>;      </div><div class="line"><a name="l00245"></a><span class="lineno"><a class="line" href="structtvs__api__callback.html#aa192a1409114221daf792977ff9bda2b">  245</a></span>&#160;    <a class="code" href="tvs__common__def_8h.html#a1743b7eb722cd88695d5893b19cae1cb">tvs_callback_on_recv_tvs_control</a> <a class="code" href="structtvs__api__callback.html#aa192a1409114221daf792977ff9bda2b">on_recv_tvs_control</a>;    </div><div class="line"><a name="l00246"></a><span class="lineno">  246</span>&#160;    <span class="keywordtype">int</span> reserve[10];</div><div class="line"><a name="l00247"></a><span class="lineno">  247</span>&#160;} <a class="code" href="structtvs__api__callback.html">tvs_api_callback</a>;</div><div class="line"><a name="l00248"></a><span class="lineno">  248</span>&#160;</div><div class="line"><a name="l00258"></a><span class="lineno"><a class="line" href="tvs__common__def_8h.html#a90dcf7653d61ef8ba1925005dccf71ac">  258</a></span>&#160;<span class="keyword">typedef</span> void (*<a class="code" href="tvs__common__def_8h.html#a90dcf7653d61ef8ba1925005dccf71ac">tvs_authorize_callback</a>)(<span class="keywordtype">bool</span> ok, <span class="keywordtype">char</span>* auth_info, <span class="keywordtype">int</span> auth_info_len, <span class="keyword">const</span> <span class="keywordtype">char</span>* client_id, <span class="keywordtype">int</span> error);</div><div class="line"><a name="l00259"></a><span class="lineno">  259</span>&#160;</div><div class="line"><a name="l00267"></a><span class="lineno"><a class="line" href="tvs__common__def_8h.html#a0fd8e8fff55c25044094299990c6bc2f">  267</a></span>&#160;<span class="keyword">typedef</span> void (*<a class="code" href="tvs__common__def_8h.html#a0fd8e8fff55c25044094299990c6bc2f">tvs_api_callback_on_provider_reader_stop</a>)(<span class="keywordtype">int</span> session_id, <span class="keywordtype">int</span> error);</div><div class="line"><a name="l00268"></a><span class="lineno">  268</span>&#160;</div><div class="line"><a name="l00269"></a><span class="lineno">  269</span>&#160;<span class="preprocessor">#endif</span></div><div class="ttc" id="tvs__common__def_8h_html_a9ca517e8dcc62bd68fe3d719e9e99702a70274446cca64af3ebaedca95968b693"><div class="ttname"><a href="tvs__common__def_8h.html#a9ca517e8dcc62bd68fe3d719e9e99702a70274446cca64af3ebaedca95968b693">TVS_API_AUDIO_PROVIDER_ERROR_NONE</a></div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:120</div></div>
<div class="ttc" id="structtvs__api__tts__param_html_a218b4f7c6cc2681a99c23a3b089d68b1"><div class="ttname"><a href="structtvs__api__tts__param.html#a218b4f7c6cc2681a99c23a3b089d68b1">tvs_api_tts_param::speed</a></div><div class="ttdeci">int speed</div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:174</div></div>
<div class="ttc" id="tvs__common__def_8h_html_a4910c576d2ee166721a6414854273ff9acf772907befd6d32c52c45cabfb3b498"><div class="ttname"><a href="tvs__common__def_8h.html#a4910c576d2ee166721a6414854273ff9acf772907befd6d32c52c45cabfb3b498">TVS_STATE_RECOGNIZNG</a></div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:67</div></div>
<div class="ttc" id="structtvs__default__config_html_a7cd7368b4699dc4ec4aaa64d150b3886"><div class="ttname"><a href="structtvs__default__config.html#a7cd7368b4699dc4ec4aaa64d150b3886">tvs_default_config::def_env</a></div><div class="ttdeci">tvs_api_env def_env</div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:98</div></div>
<div class="ttc" id="structtvs__api__callback_html_aa192a1409114221daf792977ff9bda2b"><div class="ttname"><a href="structtvs__api__callback.html#aa192a1409114221daf792977ff9bda2b">tvs_api_callback::on_recv_tvs_control</a></div><div class="ttdeci">tvs_callback_on_recv_tvs_control on_recv_tvs_control</div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:245</div></div>
<div class="ttc" id="structtvs__product__qua_html_a56abfaab87c46691c1ef3ad0df23e864"><div class="ttname"><a href="structtvs__product__qua.html#a56abfaab87c46691c1ef3ad0df23e864">tvs_product_qua::version</a></div><div class="ttdeci">char * version</div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:109</div></div>
<div class="ttc" id="tvs__common__def_8h_html_af3d61c6c0a0109373487de2a670ace99a132794155b9bdc0dd93fc086131bda62"><div class="ttname"><a href="tvs__common__def_8h.html#af3d61c6c0a0109373487de2a670ace99a132794155b9bdc0dd93fc086131bda62">TVS_MODE_BAOLA</a></div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:89</div></div>
<div class="ttc" id="structtvs__default__config_html_acb263b01132e5f9878c7d5c906555653"><div class="ttname"><a href="structtvs__default__config.html#acb263b01132e5f9878c7d5c906555653">tvs_default_config::recorder_bitrate</a></div><div class="ttdeci">int recorder_bitrate</div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:100</div></div>
<div class="ttc" id="tvs__common__def_8h_html_a9ca517e8dcc62bd68fe3d719e9e99702acb1de9430ab2362c130db97812dd2354"><div class="ttname"><a href="tvs__common__def_8h.html#a9ca517e8dcc62bd68fe3d719e9e99702acb1de9430ab2362c130db97812dd2354">TVS_API_AUDIO_PROVIDER_ERROR_STOP_CAPTURE</a></div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:122</div></div>
<div class="ttc" id="tvs__common__def_8h_html_a2b822eabf850ecd41660c581c71720eda7dcf8ec0913517d3ca11d758d9993228"><div class="ttname"><a href="tvs__common__def_8h.html#a2b822eabf850ecd41660c581c71720eda7dcf8ec0913517d3ca11d758d9993228">TVS_RECOGNIZER_PRESS_AND_HOLD</a></div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:130</div></div>
<div class="ttc" id="tvs__common__def_8h_html_af8c670fb593bd8e340ac8ea1ea84f689a63feb8e1ab863d0179d0e5e64c967e4f"><div class="ttname"><a href="tvs__common__def_8h.html#af8c670fb593bd8e340ac8ea1ea84f689a63feb8e1ab863d0179d0e5e64c967e4f">TVS_CONTROL_SEMANTIC</a></div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:144</div></div>
<div class="ttc" id="structtvs__api__state__param_html_a43a91b7381c69af350b1f6de40346d0a"><div class="ttname"><a href="structtvs__api__state__param.html#a43a91b7381c69af350b1f6de40346d0a">tvs_api_state_param::control_type</a></div><div class="ttdeci">tvs_api_control_type control_type</div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:151</div></div>
<div class="ttc" id="tvs__common__def_8h_html_a9ca517e8dcc62bd68fe3d719e9e99702"><div class="ttname"><a href="tvs__common__def_8h.html#a9ca517e8dcc62bd68fe3d719e9e99702">tvs_api_audio_provider_error</a></div><div class="ttdeci">tvs_api_audio_provider_error</div><div class="ttdoc">AUDIO_PROVIDER返回码</div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:119</div></div>
<div class="ttc" id="structtvs__api__tts__param_html_a6cb4df6b2664c7590f118432adccc86f"><div class="ttname"><a href="structtvs__api__tts__param.html#a6cb4df6b2664c7590f118432adccc86f">tvs_api_tts_param::tts_text</a></div><div class="ttdeci">char * tts_text</div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:171</div></div>
<div class="ttc" id="tvs__common__def_8h_html_a7b5f77df252a057ac0a63f6f07f44833a512585d6d04ffe8a6daa80f6ed70ed9d"><div class="ttname"><a href="tvs__common__def_8h.html#a7b5f77df252a057ac0a63f6f07f44833a512585d6d04ffe8a6daa80f6ed70ed9d">TVS_API_ENV_TEST</a></div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:78</div></div>
<div class="ttc" id="structtvs__api__callback_html_a8247d38a02f40501e4e38eeb65931b45"><div class="ttname"><a href="structtvs__api__callback.html#a8247d38a02f40501e4e38eeb65931b45">tvs_api_callback::on_state_changed</a></div><div class="ttdeci">tvs_callback_on_state_changed on_state_changed</div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:241</div></div>
<div class="ttc" id="structtvs__product__qua_html_a223b9ca3dc0054a8d3aa93cfa07c9913"><div class="ttname"><a href="structtvs__product__qua.html#a223b9ca3dc0054a8d3aa93cfa07c9913">tvs_product_qua::reserve</a></div><div class="ttdeci">char * reserve</div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:113</div></div>
<div class="ttc" id="tvs__common__def_8h_html_a0fd8e8fff55c25044094299990c6bc2f"><div class="ttname"><a href="tvs__common__def_8h.html#a0fd8e8fff55c25044094299990c6bc2f">tvs_api_callback_on_provider_reader_stop</a></div><div class="ttdeci">void(* tvs_api_callback_on_provider_reader_stop)(int session_id, int error)</div><div class="ttdoc">当SDK内部的流式语音上传操作停止时，将回调此接口</div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:267</div></div>
<div class="ttc" id="tvs__common__def_8h_html_a4910c576d2ee166721a6414854273ff9a99197d5435bc834184d4a77bd4483651"><div class="ttname"><a href="tvs__common__def_8h.html#a4910c576d2ee166721a6414854273ff9a99197d5435bc834184d4a77bd4483651">TVS_STATE_BUSY</a></div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:68</div></div>
<div class="ttc" id="structtvs__api__callback_html_ab378b24bd8c1c2fe19fe879333a3fbd5"><div class="ttname"><a href="structtvs__api__callback.html#ab378b24bd8c1c2fe19fe879333a3fbd5">tvs_api_callback::on_terminal_sync</a></div><div class="ttdeci">tvs_callback_on_terminal_sync on_terminal_sync</div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:242</div></div>
<div class="ttc" id="structtvs__api__tts__param_html_adbb56e663dd4e999eff37af964f03d25"><div class="ttname"><a href="structtvs__api__tts__param.html#adbb56e663dd4e999eff37af964f03d25">tvs_api_tts_param::timbre</a></div><div class="ttdeci">char * timbre</div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:172</div></div>
<div class="ttc" id="tvs__common__def_8h_html_a4910c576d2ee166721a6414854273ff9a6323cb6c5c34b551393924b425fba383"><div class="ttname"><a href="tvs__common__def_8h.html#a4910c576d2ee166721a6414854273ff9a6323cb6c5c34b551393924b425fba383">TVS_STATE_SPEECH_PLAYING</a></div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:69</div></div>
<div class="ttc" id="tvs__common__def_8h_html_af3d61c6c0a0109373487de2a670ace99"><div class="ttname"><a href="tvs__common__def_8h.html#af3d61c6c0a0109373487de2a670ace99">tvs_mode</a></div><div class="ttdeci">tvs_mode</div><div class="ttdoc">人设/模式</div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:87</div></div>
<div class="ttc" id="tvs__common__def_8h_html_aa26b7dd51f7a270e24726cbe9c6100ee"><div class="ttname"><a href="tvs__common__def_8h.html#aa26b7dd51f7a270e24726cbe9c6100ee">tvs_callback_on_expect_speech</a></div><div class="ttdeci">void(* tvs_callback_on_expect_speech)()</div><div class="ttdoc">监听多轮会话事件，用户使用语音触发多轮会话的场景，设备端会收到多轮会话指令。 实现此接口，可以在触发多轮对话的时候得到通知，需要触发一轮新的智能语音对话流程。</div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:217</div></div>
<div class="ttc" id="tvs__common__def_8h_html_a7b5f77df252a057ac0a63f6f07f44833a2e8aae81e668558ffe21b45be01cd17a"><div class="ttname"><a href="tvs__common__def_8h.html#a7b5f77df252a057ac0a63f6f07f44833a2e8aae81e668558ffe21b45be01cd17a">TVS_API_ENV_NORMAL</a></div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:79</div></div>
<div class="ttc" id="tvs__common__def_8h_html_ad99bb624547e16fe676bba6903cad66a"><div class="ttname"><a href="tvs__common__def_8h.html#ad99bb624547e16fe676bba6903cad66a">tvs_callback_on_asr_result</a></div><div class="ttdeci">void(* tvs_callback_on_asr_result)(const char *asr_text, bool is_end)</div><div class="ttdoc">监听后台下发的语音转文本结果</div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:234</div></div>
<div class="ttc" id="structtvs__api__callback_html_a340f3c8069694c4429da5fc84163f5d6"><div class="ttname"><a href="structtvs__api__callback.html#a340f3c8069694c4429da5fc84163f5d6">tvs_api_callback::on_mode_changed</a></div><div class="ttdeci">tvs_callback_on_mode_changed on_mode_changed</div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:243</div></div>
<div class="ttc" id="tvs__common__def_8h_html_adbdb3f6ab77f93418109c0cd40073cd5"><div class="ttname"><a href="tvs__common__def_8h.html#adbdb3f6ab77f93418109c0cd40073cd5">tvs_callback_on_state_changed</a></div><div class="ttdeci">void(* tvs_callback_on_state_changed)(tvs_recognize_state last_state, tvs_recognize_state new_state, void *state_param)</div><div class="ttdoc">监听SDK状态变化</div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:188</div></div>
<div class="ttc" id="structtvs__api__callback_html"><div class="ttname"><a href="structtvs__api__callback.html">tvs_api_callback</a></div><div class="ttdoc">向SDK注册的回调函数</div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:240</div></div>
<div class="ttc" id="structtvs__product__qua_html"><div class="ttname"><a href="structtvs__product__qua.html">tvs_product_qua</a></div><div class="ttdoc">产品QUA</div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:108</div></div>
<div class="ttc" id="tvs__common__def_8h_html_a7b5f77df252a057ac0a63f6f07f44833aec0292e6108b685e689939a7ccf51346"><div class="ttname"><a href="tvs__common__def_8h.html#a7b5f77df252a057ac0a63f6f07f44833aec0292e6108b685e689939a7ccf51346">TVS_API_ENV_DEV</a></div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:81</div></div>
<div class="ttc" id="structtvs__default__config_html_a9598580aab7de515fa61fa44189a46d1"><div class="ttname"><a href="structtvs__default__config.html#a9598580aab7de515fa61fa44189a46d1">tvs_default_config::def_sandbox_open</a></div><div class="ttdeci">bool def_sandbox_open</div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:99</div></div>
<div class="ttc" id="tvs__common__def_8h_html_af3d61c6c0a0109373487de2a670ace99aaa3536b84bda0a291b254102ba4d1030"><div class="ttname"><a href="tvs__common__def_8h.html#af3d61c6c0a0109373487de2a670ace99aaa3536b84bda0a291b254102ba4d1030">TVS_MODE_CHILD</a></div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:90</div></div>
<div class="ttc" id="structtvs__default__config_html"><div class="ttname"><a href="structtvs__default__config.html">tvs_default_config</a></div><div class="ttdoc">SDK配置参数</div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:97</div></div>
<div class="ttc" id="tvs__common__def_8h_html_a9ca517e8dcc62bd68fe3d719e9e99702ab589f35286a4700be5c23c03e4874e6b"><div class="ttname"><a href="tvs__common__def_8h.html#a9ca517e8dcc62bd68fe3d719e9e99702ab589f35286a4700be5c23c03e4874e6b">TVS_API_AUDIO_PROVIDER_ERROR_TIME_OUT</a></div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:123</div></div>
<div class="ttc" id="tvs__common__def_8h_html_a2b822eabf850ecd41660c581c71720ed"><div class="ttname"><a href="tvs__common__def_8h.html#a2b822eabf850ecd41660c581c71720ed">tvs_api_recognizer_type</a></div><div class="ttdeci">tvs_api_recognizer_type</div><div class="ttdoc">设备端启动智能语音的方式，包括按下说话/抬起停止模式、单击按钮录音模式以及唤醒词唤醒模式</div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:129</div></div>
<div class="ttc" id="structtvs__default__config_html_ab797e124da93aa4b100746d7ffc42adf"><div class="ttname"><a href="structtvs__default__config.html#ab797e124da93aa4b100746d7ffc42adf">tvs_default_config::recorder_channels</a></div><div class="ttdeci">int recorder_channels</div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:101</div></div>
<div class="ttc" id="structtvs__api__tts__param_html_a05c8b22d2905f7a52fa31b13f85c70f3"><div class="ttname"><a href="structtvs__api__tts__param.html#a05c8b22d2905f7a52fa31b13f85c70f3">tvs_api_tts_param::pitch</a></div><div class="ttdeci">int pitch</div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:175</div></div>
<div class="ttc" id="tvs__common__def_8h_html_a7b5f77df252a057ac0a63f6f07f44833aad7c9ec87757c7a1d9a9803954db80cd"><div class="ttname"><a href="tvs__common__def_8h.html#a7b5f77df252a057ac0a63f6f07f44833aad7c9ec87757c7a1d9a9803954db80cd">TVS_API_ENV_EXP</a></div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:80</div></div>
<div class="ttc" id="tvs__common__def_8h_html_a2b822eabf850ecd41660c581c71720eda14ef8132726bd340982cb79dabbedc30"><div class="ttname"><a href="tvs__common__def_8h.html#a2b822eabf850ecd41660c581c71720eda14ef8132726bd340982cb79dabbedc30">TVS_RECOGNIZER_TAP</a></div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:131</div></div>
<div class="ttc" id="tvs__common__def_8h_html_a4910c576d2ee166721a6414854273ff9af3b16c1d04aa3c3eb77f2b90d31fccfb"><div class="ttname"><a href="tvs__common__def_8h.html#a4910c576d2ee166721a6414854273ff9af3b16c1d04aa3c3eb77f2b90d31fccfb">TVS_STATE_IDLE</a></div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:65</div></div>
<div class="ttc" id="tvs__common__def_8h_html_a4910c576d2ee166721a6414854273ff9a343a7d50d3b175edfed40587907623b6"><div class="ttname"><a href="tvs__common__def_8h.html#a4910c576d2ee166721a6414854273ff9a343a7d50d3b175edfed40587907623b6">TVS_STATE_PREPARING</a></div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:66</div></div>
<div class="ttc" id="tvs__common__def_8h_html_af8c670fb593bd8e340ac8ea1ea84f689a6302a9b64e24905adf5d7fd6ec0d331a"><div class="ttname"><a href="tvs__common__def_8h.html#af8c670fb593bd8e340ac8ea1ea84f689a6302a9b64e24905adf5d7fd6ec0d331a">TVS_CONTROL_SPEECH</a></div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:140</div></div>
<div class="ttc" id="tvs__common__def_8h_html_a9ca517e8dcc62bd68fe3d719e9e99702a34ff4e3d16e39e106cdf513afcc7465a"><div class="ttname"><a href="tvs__common__def_8h.html#a9ca517e8dcc62bd68fe3d719e9e99702a34ff4e3d16e39e106cdf513afcc7465a">TVS_API_AUDIO_PROVIDER_ERROR_OTHERS</a></div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:121</div></div>
<div class="ttc" id="tvs__common__def_8h_html_a4910c576d2ee166721a6414854273ff9"><div class="ttname"><a href="tvs__common__def_8h.html#a4910c576d2ee166721a6414854273ff9">tvs_recognize_state</a></div><div class="ttdeci">tvs_recognize_state</div><div class="ttdoc">SDK状态</div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:64</div></div>
<div class="ttc" id="tvs__common__def_8h_html_a2f2eb737ecd41665f0691be8a7ad6a37"><div class="ttname"><a href="tvs__common__def_8h.html#a2f2eb737ecd41665f0691be8a7ad6a37">tvs_callback_on_mode_changed</a></div><div class="ttdeci">void(* tvs_callback_on_mode_changed)(tvs_mode src, tvs_mode dst)</div><div class="ttdoc">监听模式切换，用户使用语音或者从手机APP端切换模式后，设备端会收到模式切换指令。 实现此接口，可以在模式切换的时候得到通知</div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:208</div></div>
<div class="ttc" id="tvs__common__def_8h_html_a2b822eabf850ecd41660c581c71720edab336d318fea0dced80c6bc27a97e2fa2"><div class="ttname"><a href="tvs__common__def_8h.html#a2b822eabf850ecd41660c581c71720edab336d318fea0dced80c6bc27a97e2fa2">TVS_RECOGNIZER_WAKEWORD</a></div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:132</div></div>
<div class="ttc" id="structtvs__api__tts__param_html_aed48ca0bcd2162fd4fd495873e2631f5"><div class="ttname"><a href="structtvs__api__tts__param.html#aed48ca0bcd2162fd4fd495873e2631f5">tvs_api_tts_param::volume</a></div><div class="ttdeci">int volume</div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:173</div></div>
<div class="ttc" id="structtvs__api__state__param_html"><div class="ttname"><a href="structtvs__api__state__param.html">tvs_api_state_param</a></div><div class="ttdoc">设备端状态变化时的参数</div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:150</div></div>
<div class="ttc" id="tvs__common__def_8h_html_af8c670fb593bd8e340ac8ea1ea84f689a58948d37c7d3cef0c394fed46a946d3e"><div class="ttname"><a href="tvs__common__def_8h.html#af8c670fb593bd8e340ac8ea1ea84f689a58948d37c7d3cef0c394fed46a946d3e">TVS_CONTROL_PLAY_NEXT</a></div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:141</div></div>
<div class="ttc" id="tvs__common__def_8h_html_af8c670fb593bd8e340ac8ea1ea84f689"><div class="ttname"><a href="tvs__common__def_8h.html#af8c670fb593bd8e340ac8ea1ea84f689">tvs_api_control_type</a></div><div class="ttdeci">tvs_api_control_type</div><div class="ttdoc">设备端当前正在执行的指令类型</div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:139</div></div>
<div class="ttc" id="tvs__common__def_8h_html_a7f76bd76ef4fe3420195796922dbe9cc"><div class="ttname"><a href="tvs__common__def_8h.html#a7f76bd76ef4fe3420195796922dbe9cc">tvs_callback_on_terminal_sync</a></div><div class="ttdeci">void(* tvs_callback_on_terminal_sync)(const char *text, const char *token)</div><div class="ttdoc">监听多端互动推送信息，一般是来自手机APP端的自定义消息。 实现此接口，可以接受这些自定义消息的推送，并跟进消息内容进行处理。</div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:198</div></div>
<div class="ttc" id="tvs__common__def_8h_html_af3d61c6c0a0109373487de2a670ace99a810069da3b1e6fdc78ee6d1b6eefd67b"><div class="ttname"><a href="tvs__common__def_8h.html#af3d61c6c0a0109373487de2a670ace99a810069da3b1e6fdc78ee6d1b6eefd67b">TVS_MODE_NORMAL</a></div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:88</div></div>
<div class="ttc" id="tvs__common__def_8h_html_a7b5f77df252a057ac0a63f6f07f44833"><div class="ttname"><a href="tvs__common__def_8h.html#a7b5f77df252a057ac0a63f6f07f44833">tvs_api_env</a></div><div class="ttdeci">tvs_api_env</div><div class="ttdoc">SDK环境</div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:77</div></div>
<div class="ttc" id="structtvs__api__callback_html_aba31cd54f0fce9668f0735111f5f10cb"><div class="ttname"><a href="structtvs__api__callback.html#aba31cd54f0fce9668f0735111f5f10cb">tvs_api_callback::on_expect_speech</a></div><div class="ttdeci">tvs_callback_on_expect_speech on_expect_speech</div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:244</div></div>
<div class="ttc" id="tvs__common__def_8h_html_af8c670fb593bd8e340ac8ea1ea84f689a1a28e1151a1a207f7052cfb810af6fdc"><div class="ttname"><a href="tvs__common__def_8h.html#af8c670fb593bd8e340ac8ea1ea84f689a1a28e1151a1a207f7052cfb810af6fdc">TVS_CONTROL_PLAY_PREV</a></div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:142</div></div>
<div class="ttc" id="tvs__common__def_8h_html_af8c670fb593bd8e340ac8ea1ea84f689a0ff8f068a4bfb53c3f74ec0794c4373a"><div class="ttname"><a href="tvs__common__def_8h.html#af8c670fb593bd8e340ac8ea1ea84f689a0ff8f068a4bfb53c3f74ec0794c4373a">TVS_CONTROL_PLAY_FINISH</a></div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:143</div></div>
<div class="ttc" id="structtvs__api__state__param_html_a11614f44ef4d939bdd984953346a7572"><div class="ttname"><a href="structtvs__api__state__param.html#a11614f44ef4d939bdd984953346a7572">tvs_api_state_param::error</a></div><div class="ttdeci">int error</div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:152</div></div>
<div class="ttc" id="structtvs__product__qua_html_a08f16a026de44b77c5e7be490fb9e32b"><div class="ttname"><a href="structtvs__product__qua.html#a08f16a026de44b77c5e7be490fb9e32b">tvs_product_qua::package_name</a></div><div class="ttdeci">char * package_name</div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:112</div></div>
<div class="ttc" id="tvs__common__def_8h_html_a1743b7eb722cd88695d5893b19cae1cb"><div class="ttname"><a href="tvs__common__def_8h.html#a1743b7eb722cd88695d5893b19cae1cb">tvs_callback_on_recv_tvs_control</a></div><div class="ttdeci">void(* tvs_callback_on_recv_tvs_control)(const char *json_payload)</div><div class="ttdoc">监听后台下发的自定义技能数据</div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:225</div></div>
<div class="ttc" id="tvs__common__def_8h_html_a90dcf7653d61ef8ba1925005dccf71ac"><div class="ttname"><a href="tvs__common__def_8h.html#a90dcf7653d61ef8ba1925005dccf71ac">tvs_authorize_callback</a></div><div class="ttdeci">void(* tvs_authorize_callback)(bool ok, char *auth_info, int auth_info_len, const char *client_id, int error)</div><div class="ttdoc">监听authorize的结果，需要持久化此结果，作为下一次authorize的依据</div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:258</div></div>
<div class="ttc" id="structtvs__api__tts__param_html"><div class="ttname"><a href="structtvs__api__tts__param.html">tvs_api_tts_param</a></div><div class="ttdoc">语音合成参数</div><div class="ttdef"><b>Definition:</b> tvs_common_def.h:170</div></div>
</div><!-- fragment --></div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="tvs__common__def_8h.html">tvs_common_def.h</a></li>
    <li class="footer">制作者
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.15 </li>
  </ul>
</div>
</body>
</html>
